package com.gadgets;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.context.annotation.PropertySource;

/**
 * 功能说明：
 *
 * @author Unclexiu
 * @version V202101.00.000
 * @data 2022-09-07
 * 修改记录：  修改日期          修改人员    修改说明
 * 2022-09-07  xiujunqing   创建文件
 */
@EnableEurekaServer
@PropertySource(value = {
		"classpath:/spring-eurka-server-runningEnv.spring.properties",
		"classpath:/spring-eurka-server-application-${gadgets.running.type}.spring.properties"
})
@SpringBootApplication
@EnableCaching
public class GadgetsServiceCenterStart extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(new Class[]{GadgetsServiceCenterStart.class},args);
	}

}
